package com.micheal.pattern.factory.abstr;

import com.micheal.pattern.factory.Phone;
import com.micheal.pattern.factory.SanXing;
import com.micheal.pattern.factory.func.AppleFactory;
import com.micheal.pattern.factory.func.HuaweiFactory;
import com.micheal.pattern.factory.func.SanXingFactory;

/**
 * Created by micheal on 2018/3/21/0021.
 */
public class PhoneFactory extends AbstractFactory {

    Phone getApple() {
        return new AppleFactory().getPhone();
    }

    Phone getHuawei() {
        return new HuaweiFactory().getPhone();
    }

    Phone getSanXing() {
        return new SanXingFactory().getPhone();
    }
}
